package rewardBurn

type RewardBurnBlock struct {
	ID         string  `bson:"_id,omitempty"`
	CID        string  `bson:"CID,omitempty"`
	Height     int64   `bson:"Height,omitempty"`
	To         string  `bson:"To,omitempty"`
	From       string  `bson:"From,omitempty"`
	GasFeeCap  string  `bson:"GasFeeCap,omitempty"`
	GasLimit   int64   `bson:"GasLimit,omitempty"`
	GasPremium string  `bson:"GasPremium,omitempty"`
	Method     int64   `bson:"Method,omitempty"`
	Nonce      uint64  `bson:"Nonce,omitempty"`
	Params     string  `bson:"Params,omitempty"`
	Value      string  `bson:"Value,omitempty"`
	Version    int     `bson:"Version,omitempty"`
	Time       int64   `bson:"Time,omitempty"`
	TimeString string  `bson:"-"`
	Fil        float64 `bson:"-"`
}

type FilFoxTransfers struct {
	TotalCount int                   `json:totalCount`
	Transfers  []FilFoxTransfersList `json:transfers`
	Types      []string              `json:types`
}

type FilFoxBlocks struct {
	TotalCount int                `json:"totalCount"`
	Blocks     []FilFoxBlocksList `json:"blocks"`
}

type FilFoxBlocksList struct {
	Cid          string  `json:"cid"`
	Height       int64   `json:"height"`
	Timestamp    int64   `json:"timestamp"`
	TimeString   string  `json:"-"`
	MessageCount int64   `json:"messageCount"`
	Penalty      string  `json:"penalty"`
	Reward       string  `json:"reward"`
	Size         int64   `json:"size"`
	WinCount     int64   `json:"winCount"`
	Fil          float64 `json:"-"`
}

type FilFoxMessages struct {
	TotalCount int                  `json:totalCount`
	Messages   []FilFoxMessagesList `json:messages`
}

type FilFoxMessagesList struct {
	Cid        string  `json:cid`
	Height     int64   `json:height`
	Timestamp  int64   `json:timestamp`
	TimeString string  `json:-`
	Value      string  `json:value`
	To         string  `json:to`
	From       string  `json:from`
	Nonce      int64   `json:nonce`
	Method     string  `json:method`
	Fil        float64 `json:-`
}

type FilFoxTransfersList struct {
	From       string  `json:from`
	Height     int64   `json:height`
	Timestamp  int64   `json:timestamp`
	TimeString string  `json:-`
	To         string  `json:to`
	Type       string  `json:type`
	Value      string  `json:value`
	Message    string  `json:message`
	Fil        float64 `json:-`
}
